import React, { memo } from 'react'
import type { ReactNode } from 'react'
import { Link, Outlet } from 'react-router-dom'
import { HeaderCategory } from './style.js'
import AppNavBar from '@/components/nav-bar'
interface IProps {
  children?: ReactNode,
}
const Discover: React.FC<IProps> = memo(() => {
  return (
    <HeaderCategory>
      <AppNavBar />
      {/* 子路由占位 */}
      <Outlet />
    </HeaderCategory>
  )
})
export default Discover